import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NbEvaIconsModule } from '@nebular/eva-icons';
import {
  NbLayoutModule,
  NbThemeModule,
  NbIconModule,
  NbUserModule,
  NbInputModule,
} from '@nebular/theme';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { IndexComponent } from './pages/index/index.component';
import { NavComponent } from './pages/components/nav/nav.component';
import { TabMenuComponent } from './pages/components/tab-menu/tab-menu.component';
import { ListPanelComponent } from './pages/components/list-panel/list-panel.component';

const APP_COMPONENTS = [
  AppComponent,
  IndexComponent,
  NavComponent,
  TabMenuComponent,
  ListPanelComponent,
];

const NB_MODULES = [
  NbEvaIconsModule,
  NbLayoutModule,
  NbIconModule,
  NbUserModule,
  NbInputModule,
];

@NgModule({
  declarations: [...APP_COMPONENTS],
  imports: [
    ...NB_MODULES,
    AppRoutingModule,
    BrowserModule,
    BrowserAnimationsModule,
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    NbThemeModule.forRoot({ name: 'default' }),
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
